package com.github.wxiaoqi.security.admin.mapper;

import com.github.wxiaoqi.security.admin.entity.Group;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

/**
 * @author dzl
 */
public interface GroupMapper extends Mapper<Group> {
    /**
     * deleteGroupMembersById
     * @param groupId
     */
    public void deleteGroupMembersById (@Param("groupId") int groupId);

    /**
     *deleteGroupLeadersById
     * @param groupId
     */
    public void deleteGroupLeadersById (@Param("groupId") int groupId);

    /**
     *insertGroupMembersById
     * @param groupId
     * @param userId
     */
    public void insertGroupMembersById (@Param("groupId") int groupId,@Param("userId") int userId);

    /**
     *insertGroupLeadersById
     * @param groupId
     * @param userId
     */
    public void insertGroupLeadersById (@Param("groupId") int groupId,@Param("userId") int userId);
}